package com.hx.springboot1.controller;

import com.hx.springboot1.pojo.entity.TabCollege;
import com.hx.springboot1.service.CollegeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * Author: hx
 * Date: 2021-05-23 11/34
 * Description: Nothing else
 */
@Controller
public class CollegeController {
    @Autowired
    CollegeService collegeService;
    @GetMapping("/selectAllCollege")
    @ResponseBody
    public List<TabCollege> selectAllCollege(){
        return collegeService.selectAllCollege();
    }
}
